package QueueUse;/*
 *
 *@author:    Xavier
 *@data:      2023 - 08 - 18
 *@time:      16:28
 *
 */

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.LinkedList;
import java.util.Stack;


//双端队列
//可用于 链表 队列 栈
public class DequeueUse {
    public static void main(String[] args) {
        Deque<Integer> deque = new LinkedList<>();
        deque.offer(1);

        Deque<Integer> stack = new LinkedList<>();//链式栈
        stack.push(10);

        Stack<Integer> stack1 = new Stack<>();

        Deque<Integer> stack2 = new ArrayDeque<>();//顺序栈 数组
    }
}
